package com.yunhoo.contract.model;

import com.yunhoo.base.model.Partner;
import com.yunhoo.sys.util.common.LoginParam;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 合同主要信息
 *
 * @author Administrator
 */
public class MainInformation {

    private String orgCode;
    private String number = ""; //合同编号
    private String cname = ""; //合同名称
    //private ContractType = contractType = new ContractType();//合同类型
    private String contractTypeCode = "";//合同类型编码
    private String contractTypeName = "";
    private Integer isPayCon = null;//收付款类型 -- 0：收款合同，1：付款合同；
    private Date orderdate = new Date();//合同签订日期
    private String address = "";//合同签订地址
    private Date start = new Date();//合同起始日期
    private Date deadline = new Date();//合同截止日期
    private String nameA = "";//甲方
    private String nameAstand = "";//甲方法人
    private String nameB = "";//乙方名称
    private String nameBstand = "";//乙方法人
    private Partner partner = new Partner();//乙方
//    private String gtypeCode = "";//货物类型
//    private String gtypeName = "";//
    private BigDecimal target;//标的
    private BigDecimal quality_margin;//质保金
    private BigDecimal penalty;//违约金
    private String other = "";//其他事项
    private Date warranty = new Date();//质保日期
    private String pay;//付款条件
    private String projCode = "";//预算项目
    private String projName = "";
    //private int flag = 0;//主合同 : 0  补充合同: 1
    private String flowMark = "";//审批状态 标识
    /*
     * 在审批流中，对当前审批人来说，单据所处的状态，
     * 0：等待（审批人）审批，1：（审批人）已审批通过, -1: （审批人）已退回
     */
    private String billStatusForChecker = "";

    public String getBillStatusForChecker() {
        return billStatusForChecker;
    }

    public void setBillStatusForChecker(String billStatusForChecker) {
        this.billStatusForChecker = billStatusForChecker;
    }

    public MainInformation() {
        orgCode = LoginParam.getOrg().getCode();
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

//    public ContractType getContractType() {
//        return contractType;
//    }
//
//    public void setContractType(ContractType contractType) {
//        this.contractType = contractType;
//    }
    public Date getOrderdate() {
        return orderdate;
    }

    public void setOrderdate(Date orderdate) {
        this.orderdate = orderdate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getStart() {
        return start;
    }

    public void setStart(Date start) {
        this.start = start;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public String getNameA() {
        return nameA;
    }

    public void setNameA(String nameA) {
        this.nameA = nameA;
    }

    public String getNameAstand() {
        return nameAstand;
    }

    public void setNameAstand(String nameAstand) {
        this.nameAstand = nameAstand;
    }

    public String getNameB() {
        return nameB;
    }

    public void setNameB(String nameB) {
        this.nameB = nameB;
    }

    public String getNameBstand() {
        return nameBstand;
    }

    public void setNameBstand(String nameBstand) {
        this.nameBstand = nameBstand;
    }

    public Partner getPartner() {
        return partner;
    }

    public void setPartner(Partner partner) {
        this.partner = partner;
    }

    public String getContractTypeCode() {
        return contractTypeCode;
    }

    public void setContractTypeCode(String contractTypeCode) {
        this.contractTypeCode = contractTypeCode;
    }

    public String getContractTypeName() {
        return contractTypeName;
    }

    public void setContractTypeName(String contractTypeName) {
        this.contractTypeName = contractTypeName;
    }

    public BigDecimal getTarget() {
        return target;
    }

    public void setTarget(BigDecimal target) {
        this.target = target;
    }

    public BigDecimal getQuality_margin() {
        return quality_margin;
    }

    public void setQuality_margin(BigDecimal quality_margin) {
        this.quality_margin = quality_margin;
    }

    public BigDecimal getPenalty() {
        return penalty;
    }

    public void setPenalty(BigDecimal penalty) {
        this.penalty = penalty;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public Date getWarranty() {
        return warranty;
    }

    public void setWarranty(Date warranty) {
        this.warranty = warranty;
    }

    public String getPay() {
        return pay;
    }

    public void setPay(String pay) {
        this.pay = pay;
    }
//    }

    //
    //    public int getFlag() {
    //    }
    //    }
    //
    //    public void setFlag(int flag) {
    //        this.flag = flag;
    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getProjCode() {
        return projCode;
    }

    public void setProjCode(String projCode) {
        this.projCode = projCode;
    }

    public String getProjName() {
        return projName;
    }

    public void setProjName(String projName) {
        this.projName = projName;
    }

    public String getFlowMark() {
        return flowMark;
    }

    public void setFlowMark(String flowMark) {
        this.flowMark = flowMark;
    }

    public Integer getIsPayCon() {
        return isPayCon;
    }

    public void setIsPayCon(Integer isPayCon) {
        this.isPayCon = isPayCon;
    }
}
